﻿using System;

namespace Self_Referencing
{
    class Program
    {
        static void Main(string[] args)
        {
            Balloon balloon = new Balloon();
            Balloon balloon1 = new Balloon();
            Console.WriteLine(
            balloon.Equals(balloon1));
        }
    }

    public interface IEquatable<T>
    {
        bool Equals(T obj);
    }

    public class Balloon : IEquatable<Balloon>
    {
        public string Color
        {
            get;
            set;
        }

        public int CC
        {
            get;
            set;
        }
        public bool Equals(Balloon obj)
        {
            if (obj == null)
                return false;
            return obj.Color == Color && obj.CC == CC;
        }
    }
}
